package com.edu.hre.struts.form.pim;

import java.util.Date;

import org.apache.struts.action.ActionForm;

import com.edu.hre.common.utils.CommonUtils;

public class EmpDependentForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6056273106708257020L;
	private Integer id;
    private Integer empNumber;
    private String edName;
    private String edRelationship;
    private Date edDateOfBirth;
    
    private boolean isSelected = false;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public boolean isSelected() {
		return isSelected;
	}

	public void setSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}
	
	public boolean getIsSelected() {
		return isSelected;
	}

	public void setIsSelected(boolean isSelected) {
		this.isSelected = isSelected;
	}

	public Integer getEmpNumber() {
		return empNumber;
	}

	public void setEmpNumber(Integer empNumber) {
		this.empNumber = empNumber;
	}

	public String getEdName() {
		return edName;
	}

	public void setEdName(String edName) {
		this.edName = edName;
	}

	public String getEdRelationship() {
		return edRelationship;
	}

	public void setEdRelationship(String edRelationship) {
		this.edRelationship = edRelationship;
	}

	public String getEdDateOfBirth() {
		return CommonUtils.dateToString(edDateOfBirth);
	}

	public void setEdDateOfBirth(String edDateOfBirth) {
		this.edDateOfBirth = CommonUtils.stringToDate(edDateOfBirth);
	}
}
